package com.example.configclient;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * Create by jian.pan on 2018/6/20
 */
@Component
//@ConfigurationProperties(prefix = "info")
//@EnableConfigurationProperties
@RefreshScope
public class ConfigProperties {

  @Value("${info.appVersion}")
  private String appVersion;
  @Value("${info.appName}")
  private String appName;

  public String getAppVersion() {
    return appVersion;
  }


  public String getAppName() {
    return appName;
  }

}
